package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.hhtb.model.LogPuresAccualDto;
import com.stylefeng.guns.modular.hhtb.model.LogPurseAccrual;
import com.stylefeng.guns.modular.hhtb.dao.LogPurseAccrualMapper;
import com.stylefeng.guns.modular.hhtb.service.ILogPurseAccrualService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 理财钱包利息流水 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-30
 */
@Service
public class LogPurseAccrualServiceImpl extends ServiceImpl<LogPurseAccrualMapper, LogPurseAccrual> implements ILogPurseAccrualService {

    @Autowired
    private LogPurseAccrualMapper logPurseAccrualMapper;
    @Override
    public List<Map<String, Object>> accuAllist(Page<Map<String, Object>> page, LogPuresAccualDto logPuresAccualDto) {
        List<Map<String, Object>> list = logPurseAccrualMapper.accuAllist(page,logPuresAccualDto);
        Integer total = logPurseAccrualMapper.accuAllistCount(logPuresAccualDto);
        page.setTotal(total);
        return list;
    }
}
